<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="text/html;charset=UTF-8" />
    <title>测试文件上传</title>
</head>
<body>
    <h2 th:text="${name}"></h2>
    <form th:action="@{/testController/upload}" method="post" enctype="multipart/form-data">
        <input type="file" name="file" />
        <input type="submit" value="上传" />
    </form>
</body>
</html>